package com.sanjishu.enterlab.electricity.sale.service;

import com.sanjishu.enterlab.electricity.sale.domain.New;
import com.sanjishu.enterlab.electricity.sale.mapper.NewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewService {

    @Autowired
    private NewMapper newMapper;

    public List<New> lastNews() {
        return newMapper.lastNews();
    }
}
